<?php 
namespace app\app\validate;
use think\Validate;

class Store extends Validate{

	protected $rule = [
		'name'        => 'require|length:1,30',
		'address'     => 'require',
		'description' => 'require',
		'image'       => 'require',
		'lgt'         => 'require',
		'lat'		  => 'require',	
	];

	protected $message = [
		'name.require'    => '商户名必填',
		'name.length'     => '商户名长度在1至30字符之间',
		'address.require' => '地址必填',
		'description.require' => '详细介绍必填',
		'image.require'       => '图片必填',
		'lgt.require'         => '经度必填',
		'lat.require'         => '纬度必填'
	];
}